ADP\BaseVersion\Includes\CartProcessor\CartCouponsProcessor D

Total Complexity 139
Dependencies 16
Dependents 0
Total lines 850
Lines of code 518
Logical lines of code 293
Comment lines 148
Methods 39
Properties 8

Methods 39

Method Rating Maintainability Complexity Lines of code
maybeRemoveOriginCoupons()
B
40 16 66
replaceWcNotice()
B
45 17 43
refreshCoupons()
A
44 16 42
prepareCouponsData()
A
44 14 44
applyCoupons()
A
43 13 50
getCouponData()
S
53 7 22
replaceNotices()
S
55 5 21
processPercentLimitCoupon()
S
53 5 21
getExactItemApplicationCouponDiscountAmount()
S
50 4 28
addSingleCoupon()
S
55 4 19
hookDisabledCouponsIsValidForCart()
S
59 4 14
sanitize()
S
62 3 11
addReadyCouponData()
S
61 2 12
getPercentLimitCouponDiscountAmount()
S
70 2 6
setFiltersToSupportExactItemApplicationOfReplacementCoupon()
S
64 2 10
addGroupCoupon()
S
70 2 6
updateTotals()
S
71 1 7
__construct()
S
77 1 4
purgeAppliedCoupons()
S
81 1 3
addOriginCoupons()
S
79 1 3
addRuleTriggerCoupons()
S
79 1 3
purge()
S
68 1 8
addPercentLimitCouponProductType()
S
77 1 4
addExactItemApplicationCouponCartType()
S
77 1 4
addExactItemApplicationCouponDiscountType()
S
73 1 5
withContext()
S
81 1 3
addPercentLimitCouponDiscountType()
S
73 1 5
unsetFilterToSuppressDisabledWcCoupons()
S
78 1 3
setFilterToSuppressDisabledWcCoupons()
S
78 1 3
unsetFiltersToSupportExactItemApplicationOfReplacementCoupon()
S
68 1 7
unsetFiltersToSupportPercentLimitCoupon()
S
70 1 6
setFiltersToSupportPercentLimitCoupon()
S
67 1 7
unsetFilterToInstallCouponsData()
S
78 1 3
setFilterToInstallCouponsData()
S
78 1 3
installActions()
S
73 1 6
prepareConfig()
S
91 1 2
init()
S
82 1 3
disableAllWcCoupons()
S
80 1 3
applyCouponsToWcCart()
S
67 1 8